lib/repo-finder: Add mount based OstreeRepoFinder implementation
authorPhilip Withnall <withnall@endlessm.com>
Tue, 18 Apr 2017 23:07:51 +0000 (00:07 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Jun 2017 15:56:07 +0000 (15:56 +0000)
commitae335f24dca8561a8f719edec243c4f339986c4e
tree7601f4b2aed89c1e71f5ca1b2bcead388d39d3a8
parentd15f83c9223a48454fafd47b41cf9bf2e4e4da72
lib/repo-finder: Add mount based OstreeRepoFinder implementation

This is a basic implementation of OstreeRepoFinder which resolves ref
names to remote URIs by looking for them on any currently mounted
removable storage volumes. The idea is to support OS and app updates via
USB stick.

Unit tests are included.

This bumps libostree’s maximum GLib dependency from 2.44 to 2.50 for
g_drive_is_removable(). If GLib 2.50 is not available, the call which
needs it will be omitted and the OstreeRepoFinderMount implementation
will scan all volumes (not just removable ones); this is a performance
hit, but not a functionality hit.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #924
Approved by: cgwalters
16 files changed:
Makefile-libostree-defines.am
Makefile-libostree.am
Makefile-tests.am
Makefile.am
apidoc/ostree-experimental-sections.txt
src/libostree/libostree-experimental.sym
src/libostree/ostree-autocleanups.h
src/libostree/ostree-core-private.h
src/libostree/ostree-repo-finder-mount.c [new file with mode: 0644]
src/libostree/ostree-repo-finder-mount.h [new file with mode: 0644]
src/libostree/ostree-repo-pull.c
src/libostree/ostree.h
tests/.gitignore
tests/test-mock-gio.c [new file with mode: 0644]
tests/test-mock-gio.h [new file with mode: 0644]
tests/test-repo-finder-mount.c [new file with mode: 0644]